import requests

cookies = {
    'routeId': '.uc2',
    'Hm_lvt_489bd07e99fbfc5f12cbb4145adb0a9b': '1702021567',
    'MALLSSID': '794158764B396D55686D2B565A694D37306F756A64797061356A2B2F777951326F50504C5168434277767A654471736F32367539337934507868676D384A7141',
    'JSESSIONID': 'E246E674DBECB62906535776D877CD5E',
    'Hm_lpvt_489bd07e99fbfc5f12cbb4145adb0a9b': '1702027542',
}

headers = {
    'Accept': '*/*',
    'Accept-EncKey': 'mYxwcNv1oz9caLxDN7mjrA==',
    'Accept-Language': 'zh-CN,zh;q=0.9',
    'Connection': 'keep-alive',
    'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    # 'Cookie': 'routeId=.uc2; Hm_lvt_489bd07e99fbfc5f12cbb4145adb0a9b=1702021567; MALLSSID=794158764B396D55686D2B565A694D37306F756A64797061356A2B2F777951326F50504C5168434277767A654471736F32367539337934507868676D384A7141; JSESSIONID=E246E674DBECB62906535776D877CD5E; Hm_lpvt_489bd07e99fbfc5f12cbb4145adb0a9b=1702027542',
    'Origin': 'https://webapi.cninfo.com.cn',
    'Referer': 'https://webapi.cninfo.com.cn/',
    'Sec-Fetch-Dest': 'empty',
    'Sec-Fetch-Mode': 'cors',
    'Sec-Fetch-Site': 'same-origin',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36',
    'X-Requested-With': 'XMLHttpRequest',
    'sec-ch-ua': '"Google Chrome";v="119", "Chromium";v="119", "Not?A_Brand";v="24"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
}

data = {
    'tdate': '2023-12-04',
    'market': 'SZE',
}

response = requests.post('https://webapi.cninfo.com.cn/api/sysapi/p_sysapi1007', cookies=cookies, headers=headers, data=data)

print(response.json())